<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<c:set var="path" value="${pageContext.request.contextPath }" />
<%@ taglib tagdir="/WEB-INF/tags" prefix="matrix"%>
<%@ taglib uri="http://matrixcsm.zkingsoft.com" prefix="cms"%>
<cms:ads   code="'img_100007',
'ZY_GongJuAn_1',
'ZY_ShiChang_2',
'ZY_XinCheng_3',
'img_4',
'img_5',
'ZY_GongJuAn_6',
'ZY_ShiChang_7',
'ZY_XinCheng_8',
'img_9',
'img_10',
'ZY_GongJuAn_11',
'ZY_ShiChang_12',
'ZY_XinCheng_13',
'img_14',
'img_15',
'ZY_GongJuAn_16',
'ZY_ShiChang_17',
'ZY_XinCheng_18',
'img_19',
'img_20',
'ZY_GongJuAn_21',
'ZY_ShiChang_22',
'ZY_XinCheng_23',
'img_24',
'img_25',
'ZY_GongJuAn_26',
'ZY_ShiChang_27',
'ZY_XinCheng_28',
'img_222223'
"  ></cms:ads>
<!doctype html>
<html lang="en">
 <head> 
  <meta charset="UTF-8"> 
  <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
  <meta http-equiv="X-UA-Compatible" content=""> 
  <link rel="icon" sizes="any" href="${浏览器logo}">
  <title>${网页标题}</title>
  <link rel="stylesheet" href="http://file.micromall.xczhyf.cn/uploadeFile/css/public.css">
  <style>body{ margin: 0; padding: 0; } .videolist {display: flex; width:280px; height:270px;margin-right: 20px;} .videolist:hover{ cursor: pointer; } .videoed { display:none; width:50px; height:50px; position: absolute; left:45%; top:45%; z-index:99; border-radius:100%; } .videos{ display:none; border: 1px solid #080808; position:fixed; left:50%; top:50%; margin-left:-320px; margin-top:-210px; z-index:100; width:712px; height:400px;background: #000000;text-align: center } .vclose { position:absolute;right:1%; top:1%; border-radius:100%; cursor: pointer; }</style>
  <meta name="keywords" content="${网页关键词}">
  <meta name="description" content="${网页描述 }">

  <style>
   .flex_wrab {
    display: flex;
    flex-flow: wrap;
   }
  </style>
 </head>  
 <body>
 <jsp:include page="_top.jsp" ></jsp:include>
 <div class="w_100"  style="margin-bottom: 50px">
     <img src="${img_222223.adImg}" style="height: 339px" alt="" class="w_100 zy" data-type="ad" data-id="${img_222223.adId}">
 </div>
  <div class="w1200 marginAuto"> 
   <div class="video"> 
    <div class="flex_wrab">

     <cms:ad var="spzx" code="${param.type }"></cms:ad>
     <c:forEach items="${spzx }" var="item">

      <div class="videolist jus_column" vpath="${item.adImg}" ipath="${item.adUrl}" >
       <img src="${item.adImg}" width="280px" height="158px"  data-type="ad" >
       <div class="vtime mt10 zy" data-type="ad" data-id="${ZY_GongJuAn_1.adId}"  style="color: #000;">
         ${item.adTitle}
       </div>

       <img src="${img_4.adImg}" class="videoed zy" data-type="ad" data-id="${img_4.adId}">
      </div>
     </c:forEach>



     <div class="videos"></div>
    </div> 
   </div>
  </div>
 <jsp:include page="_footer.jsp"></jsp:include>
 <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
  <script src="http://file.micromall.xczhyf.cn/uploadeFile/js/jquery-3.4.1.js"></script>
  <script src="http://file.micromall.xczhyf.cn/uploadeFile/js/topHead.js"></script>
  <script>
   $('.videolist').each(function(){ //遍历视频列表
        $(this).hover(function(){ //鼠标移上来后显示播放按钮
            $(this).find('.videoed').show();
        },function(){
            $(this).find('.videoed').hide();
        });
        $(this).click(function(){ //这个视频被点击后执行
            var img = $(this).attr('vpath');//获取视频预览图
            var video = $(this).attr('ipath');//获取视频路径
            $('.videos').html("<video id=\"video\" poster='"+img+"' style='width: 640px;margin-top: 22px' src='"+video+"' preload=\"auto\" controls=\"controls\" autoplay=\"autoplay\"></video><img onClick=\"close1()\" class=\"vclose\" src=\"http://file.xc.xczhyf.cn/uploadeFile/img/gb.png\" width=\"25\" height=\"25\"/>");
            $('.videos').show();
        });
    });

    function close1(){
        var v = document.getElementById('video');//获取视频节点
        $('.videos').hide();//点击关闭按钮关闭暂停视频
        v.pause();
        $('.videos').html();
    }
</script> 
 </body>
</html>